package com.put.mybills.model;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;


@Root
public class Facture {
	
	
	@Attribute
	private Integer Id= 0;	
	@Attribute
	private String Name = "";
	
	@Attribute(required=false)
	private String Term ="";		
	
	@Attribute(required=false)
	private String Descripiton = "";	
	
	@Attribute(required=false)
	private String Icon = "";		
	
	@Attribute(required=false)
	private Integer Interval = 0;
	
	@Attribute(required=false)
	private Boolean IsEmalNotyfication = false;	
	
	@Attribute(required=false)
	private Boolean IsPopUpNotyfication = true;
	
	@Attribute(required=false)
	private String DriveIDIcon = "";
	
	private int Template_ID;


	public Facture() {}
	
	public Facture(String Name) {		
		this.Name = Name;	
	}
	
	public String getName() {
		return Name;
	}
	
	public void setName(String name) {
		Name = name;
	}
	
	public String getTerm() {
		return Term;
	}
	
	public void setTerm(String term) {
		Term = term;
	}
	
	public Integer getId() {
		return Id;
	}
	
	public void setId(Integer id) {
		Id = id;
	}

	
	public String getDescripiton() {
		return Descripiton;
	}

	public void setDescripiton(String descripiton) {
		Descripiton = descripiton;
	}

	public String getIcon() {
		return Icon;
	}

	public void setIcon(String icon) {
		Icon = icon;
	}

	public Integer getInterval() {
		return Interval;
	}

	public void setInterval(Integer interval) {
		this.Interval = interval;
	}

	public Integer getIsEmalNotyfication() {
		if (IsEmalNotyfication == true)
			return 0;
		else 
			return 1;
	}	

	public void setIsEmalNotyfication(Integer isEmalNotyfication) {
		if (isEmalNotyfication == 0)
			IsEmalNotyfication = true;
		else 
			IsEmalNotyfication = false;
	}

	public Integer getIsPopUpNotyfication() {

		if (IsPopUpNotyfication == true)
			return 0;
		else 
			return 1;
	}

	public void setIsPopUpNotyfication(Integer isPopUpNotyfication) {
		
		if (isPopUpNotyfication == 0)
			IsPopUpNotyfication = true;
		else 
			IsPopUpNotyfication = false;
		
		
	}	
	
	public String getDriveIDIcon() {
		return DriveIDIcon;
	}

	public void setDriveIDIcon(String driveIDIcon) {
		DriveIDIcon = driveIDIcon;
	}

	public int getTemplate_ID() {
		return Template_ID;
	}

	public void setTemplate_ID(int template_ID) {
		Template_ID = template_ID;
	}


}
